﻿using System;
using System.Collections.Generic;

namespace vite_entity.Entities;

/// <summary>
/// 角色表
/// </summary>
public partial class SysRole
{
    public long Id { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    public string Name { get; set; } = null!;

    /// <summary>
    /// 角色编码
    /// </summary>
    public string Code { get; set; } = null!;

    /// <summary>
    /// 显示顺序
    /// </summary>
    public int? Sort { get; set; }

    /// <summary>
    /// 角色状态(1-正常 0-停用)
    /// </summary>
    public bool? Status { get; set; }

    /// <summary>
    /// 数据权限(0-所有数据 1-部门及子部门数据 2-本部门数据3-本人数据)
    /// </summary>
    public sbyte? DataScope { get; set; }

    /// <summary>
    /// 创建人 ID
    /// </summary>
    public long? CreateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新人ID
    /// </summary>
    public long? UpdateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 逻辑删除标识(0-未删除 1-已删除)
    /// </summary>
    public bool IsDeleted { get; set; }
}
